package com.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;

import com.bean.VideoTag;
import com.dao.VideoTagDao;
@Component
public class VideoTagDaoImpl implements VideoTagDao{

	@Autowired
	private MongoTemplate mongoTemplate;

	@Override
	public List<VideoTag> selectList() {
		return mongoTemplate.find(new Query(), VideoTag.class);
	}
	
	
}
